<template lang="pug">
  kalix-dialog.user-add(title='查看' bizKey="LiveRooms" ref="kalixBizDialog" v-bind:formModel.sync="formModel"  isView)
    div.el-form(slot="dialogFormSlot")
      el-form-item.short(label="用户名称" prop="userName" v-bind:label-width="labelWidth" v-bind:rules="rules.userName")
        el-input(v-model="formModel.userName" readonly)
      el-form-item.short(label="课程" prop="cname" v-bind:label-width="labelWidth" v-bind:rules="rules.cname")
        el-input(v-model="formModel.cname" readonly)
      el-form-item.short(label="讨论主题" prop="discussTitle" v-bind:label-width="labelWidth" v-bind:rules="rules.discussTitle")
        el-input(v-model="formModel.discussTitle" readonly)
      el-form-item.short(label="讨论详情" prop="discussEnclosure" v-bind:label-width="labelWidth" v-bind:rules="rules.discussEnclosure")
        el-input(v-model="formModel.discussEnclosure" type="textarea" readonly)
      el-form-item.short(label="点赞数" prop="thumbsupCounts" v-bind:label-width="labelWidth" v-bind:rules="rules.thumbsupCounts")
        el-input(v-model="formModel.thumbsupCounts" readonly)
</template>

<script type="text/ecmascript-6">
  import FormModel from './model'
  export default {
    name: 'discussView',
    data() {
      return {
        rules: {
        },
        formModel: Object.assign({}, FormModel),
        labelWidth: '120px',
        options: []
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">

</style>
